package com.dayuanit.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dayuanit.domain.Order;

public interface OrderDao {
	
	int addOrder(Order order);
	
	List<Order> listOrder(@Param("userId")Integer userId, @Param("startNum")Integer startNum, @Param("preNum")Integer preNum);
	
	int countOrders(@Param("userId")Integer userId);
	
	int modifyOrderStatus(@Param("id")Integer id, @Param("oldStatus")int oldStatus, @Param("newStatus")int newStatus);
	
	Order getOrder(@Param("id")Integer id);
}
